<table style="border: 1px solid #000; width: 100%" >
    <thead >
        <tr>
            <th>C&oacute;digo</th>
            <th>Nombre</th>
            <th>Precio</th>
            <th>Cuenta</th>
            <th>Acci&oacute;n</th>
        </tr>
    </thead>
    <tbody id="lineaResultado">
        <?php
        $contador = 0;
        $total = 0;
       if(count($itemsconceptos) > 0):
        foreach ($itemsconceptos as $i => $item):
            if ($contador % 2) {
                $fondolinea = "itemParTabla";
            } else {
                $fondolinea = "itemImparTabla";
            }
            ?>
            <tr class="<?php echo $fondolinea ?>">
    <!--                <tr class="<2?php echo fmod($i, 2) ? 'even' : 'odd' ?>">-->
                <td style="width:50px;text-align: left" ><?php echo $item['codigo'] ?></td>
                <td style="width:150px;text-align: center" ><?php echo $item['nombre'] ?></td>
                <td style="text-align: left;width:50px;" ><?php echo "$" . $item['precio'] ?></td>
                <td style="text-align: center;width:70px;" ><?php echo $item['cuenta'] ?></td>
                <td style="width:50px;text-align: center" >
                    <?php
                    echo jq_link_to_remote('<img title="Eliminar" src="/images/eliminar.png"/>', array(
                        'update' => 'tablaconceptos',
                        'url' => 'facturaordinaria/eliminar?id=' . $item['id'],
                        'method' => 'get',
//                        'complete' => "$('#puntosActualesHojaRuta').css({display:'block'});"
                    ));
//            
                    ?>

                </td>
            </tr>    
            <?php
            $contador++;
            $total += $item['precio'];
        endforeach;
      else:?>
        <script>
            $("#imprimir").css({display: "none"});
        </script>     
       <tr>
       <td><b style="color:red">No hay conceptos agregados.</b></td></>
       <td></td></>  
       <td></td>  
       <td></td>
       <td></td>
       </tr> 
<?php endif;
        ?>
    </tbody>
    
</table>

<div id="imprimirfactord" style="margin-top: 20px;font-size: 16px;font-weight: bold;margin-right: 1%;float:right">
    <div id="totalFacOrd" class="totales">
        <?php echo "TOTAL: $" . $total ?>
    </div>
   
</div>